import request from '@/utils/request'

// 查询积分消费记录列表
export function listIntegralLog(query) {
  return request({
    url: '/integral/integralLog/list',
    method: 'get',
    params: query
  })
}

// 查询积分消费记录详细
export function getIntegralLog(logId) {
  return request({
    url: '/integral/integralLog/' + logId,
    method: 'get'
  })
}

// 新增积分消费记录
export function addIntegralLog(data) {
  return request({
    url: '/integral/integralLog',
    method: 'post',
    data: data
  })
}

// 修改积分消费记录
export function updateIntegralLog(data) {
  return request({
    url: '/integral/integralLog',
    method: 'put',
    data: data
  })
}

// 删除积分消费记录
export function delIntegralLog(logId) {
  return request({
    url: '/integral/integralLog/' + logId,
    method: 'delete'
  })
}
